/*
 * ========================================================
 * Copyright(c) 2014 杭州龙骞科技-版权所有
 * ========================================================
 * 本软件由杭州龙骞科技所有, 未经书面许可, 任何单位和个人不得以
 * 任何形式复制代码的部分或全部, 并以任何形式传播。
 * 公司网址
 * http://www.hzdracom.com/
 * ========================================================
 */
package logic.constants;

import com.ciko.code.constant.Constants;

import logic.bean.ContactInfo;


/**
 * @Project： Lqyd_Android
 * @Title：Constant
 * @Description：
 * @Author：wayne
 * @Date：2014年8月11日上午11:43:21
 */
public class Const
{

	/************ 应用服务接口地址 **************/
	public static final String SERVER_URL        = Constants.isTestUrl ? "http://121.41.18.34:555/hzlqswserver" : "http://42.121.255.69:8080/hzlqswserver";
	public static final String SERVER_ENCRYPTKEY = "LQSW@)!$";
	
	/************ 新闻服务接口地址 **************/
	public static final String NEWS_URL          = Constants.isTestUrl ? "http://www.cdmafax.com/lqsw_website/" : "http://42.121.253.209:8081/lqsw_website/";
	/************ 服务中心接口地址 **************/
	public static final String SERVICE_CENTER          = "http://121.41.18.34:555/lqsw_website/20161222/index.html";

	/*************教育培训接口地址 **************/
	public static final String TRAIN_URL         = Constants.isTestUrl ? "http://121.41.18.34:555/lqsw_website/" : "http://42.121.253.209:8081/lqsw_website/";

	public static ContactInfo  contactInfo;
	public static final String ACCOUNTTYPE       = "1";                                                       //1手机帐号  2 邮箱
	public static final String CLIENTTYPE        = "android_1.1.6";
	public static final String ContentType       = "application/xml;charset=UTF-8";
	public static final String charset           = "UTF-8";
	public static String       phone_number      = "";
	public static String       pwd               = "";
	public static String       login_key         = "";
	/** 登陆者身份 用户类型 0：普通用户；1：客户经理；2：客户。默认为0 */
	public static String       UserRole          = "0";
	public static String       UserAccId         = "";
	public static String       UserStaffId       = "";
	public static int          UserType          = 0;
	//保存用户的云信侧Id 
	public static boolean      isActivationError = true;
	public static String       tempCard, tempCardPwd;
	
	public static void clearCardInfo() {
		isActivationError = true;
		tempCard = "";
		tempCardPwd = "";
	}
	
	//重置
	public static void clear() {
		phone_number = "";
		login_key = "";
		UserRole = "0";
		UserAccId = "";
		UserStaffId = "";
		UserType = 0;
		contactInfo = null;
		clearCardInfo();
	}
	
	//更改头像需要的常量
	public static final int CAPTURE_IMAGE   = 10;
	public static final int GET_LOCAL_IMAGE = CAPTURE_IMAGE + 1;
	public static final int CROP_IMAGE      = GET_LOCAL_IMAGE + 1;
	public static final int ATTEND_REACH    = CROP_IMAGE + 1;
	public static final int ATTEND_QUIT      = ATTEND_REACH + 1;

	public static String[]  SupportExt      = {
	        "txt",
	        "epub",
	        "doc",
	        "html"
	                                        };
}
